﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace Nizm0.QOT.Library.Objects
{
    public class ObservedDirectory : IXmlSerializable
    {
        private string _directory;

        public string Directory
        {
            get { return _directory; }
            set { _directory = value; }
        }

        public ObservedDirectory()
        { }

        public ObservedDirectory(string Directory)
        {
            _directory = Directory;
        }

        public System.Xml.Schema.XmlSchema GetSchema()
        {
            throw new NotImplementedException();
        }

        public void ReadXml(System.Xml.XmlReader reader)
        {
            _directory = reader.GetAttribute("Directory");
        }

        public void WriteXml(System.Xml.XmlWriter writer)
        {
            writer.WriteAttributeString("Directory", _directory);
        }
    }
}
